/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * linux/arch/arm/kernel/entry-v7m.S
 *
 * Copyright (C) 2008 ARM Ltd.
 *
 * Low-level vector interface routines for the ARMv7-M architecture
 */
#include "../../include/arm/assembler.h"
#include "../../include/arm/v7m.h"

ENTRY(__invalid_entry)
    b .
ENDPROC(__invalid_entry)

/*
 * This is how we return from a fork.
 */
ENTRY(ret_from_fork)
    bl	schedule_tail
	cmp	r5, #0
	movne	r0, r4
	badrne	lr, 1f
	retne	r5
1:
	b	.
ENDPROC(ret_from_fork)

ENTRY(HardFault_Handler)

	mrs r0, psp
	bl show_hard_fault
    b .
ENDPROC(HardFault_Handler)
